package com.cinc.ebc.sd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.sd.entity.SdDispatchLoadDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cinc.ebc.sd.model.SdDispatchLoadDetailOutModel;
import com.cinc.ebc.sd.model.SdDispatchLoadDetailStockModel;
import com.cinc.ebc.sd.vo.SdDispatchLoadDetailPage;

import java.util.List;

/**
 * @Description: 装车明细
 * @Author: jeecg-boot
 * @Date:   2022-09-25
 * @Version: V1.0
 */
public interface ISdDispatchLoadDetailService extends IService<SdDispatchLoadDetail> {

	public List<SdDispatchLoadDetail> selectByMainId(String mainId);

	public List<SdDispatchLoadDetailStockModel> selectStockByMainId(String mainId);

	/**
	 * 出库分页查询
	 * @param page
	 * @param detailPage
	 * @return
	 */
	IPage<SdDispatchLoadDetailOutModel> outPage(Page<SdDispatchLoadDetailOutModel> page, SdDispatchLoadDetailPage detailPage);

	/**
	 * 装车明细查询
	 * @param detailPage
	 * @return
	 */
	List<SdDispatchLoadDetailOutModel> detailList(SdDispatchLoadDetailPage detailPage);
}
